<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

    <style type="text/css">
        body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}
    </style>

    <title>社会资源视频联动报警平台</title>

</head>
<body>
<div id="allmap"></div>
</body>
</html>

<script type="text/javascript">
    //百度地图API功能
    function loadBaiduJScript() {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "http://api.map.baidu.com/api?v=2.0&ak=Gzc3KWQsbI5uys3pFpHplAND6BdMZuqa&callback=initbd";
        document.body.appendChild(script);
    }
    function initbd() {
        var map = new BMap.Map("allmap");            // 创建Map实例
        var point = new BMap.Point(87.608915, 43.819108); // 创建点坐标
        map.centerAndZoom(point,13);
        map.enableScrollWheelZoom();                 //启用滚轮放大缩小
    }

    //高德地图模块
    function loadGdMap(){
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://webapi.amap.com/maps?v=1.4.8&key=3b5f4b791ce29a1b8100fc9b99ccf807&callback=initgd";
        document.body.appendChild(script);
    }

    function initgd(){
        var map = new AMap.Map('allmap', {
            center:[87.608915, 43.819108],
            zoom:13
        });
    }
    //window.onload = loadBaiduJScript;  //异步加载百度地图
    window.onload = loadGdMap;  //异步加载高德地图
</script>